package com.hnust.dao;

import com.hnust.domain.SchoolAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 *创建人：张汝往
 *创建时间：2020/10/6
 *描述：
 */
@Mapper
@Repository
public interface SchoolAdminDao {

    //根据账号密码查询所有校管理员
    @Select("select * from school_admin where school_admin=#{account} and password=#{password}")
    @ResultType(SchoolAdmin.class)
    public SchoolAdmin findSchoolAdmin(String account, String password);
}
